package com.csu.tour.controller;
import com.csu.tour.entity.HotelInfo;
import com.csu.tour.service.StarInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class StarInfoController {

    @Autowired
    private StarInfoService starInfoService;

    @PostMapping("/starInfos")
    public void addStarInfo(@RequestBody HotelInfo starInfo) {
        starInfoService.addStarInfo(starInfo);
    }
}

